/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.edu.agh.student.nn.core.cp;

/**
 * @author janburkot
 */
public class WidowHoffTeaching implements Teaching {
    public double countNewWeight(double oldWeight, double learningRate, double expectedResult, double output, double input) {
        return oldWeight + learningRate * (expectedResult - output) * input;
    }
}
